package camp.android.cookbook;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

	
	public class DeleteOnClickListener implements OnClickListener
	{
		@Override
		public void onClick(View v)
		{
			Button delete = (Button)v;
			LinearLayout row = (LinearLayout)delete.getParent();
			LinearLayout outer = (LinearLayout)row.getParent();
			outer.removeView(row);
		}
	}